class CompactionDict {
    dict:any=[
        {
            key: 0,
            value: "静碾"
        },
        {
            key: 1,
            value: "高频低振(弱振)"
        },
        {
            key: 2,
            value: "低频高振(强振)"
        }
    ]
    getValue(key:any){
        let type = this.dict.find((item:any)=>{
            return item.value == key
        })
        if(type) return type.value
        return ""
    }
    getStateByKey(key:any){
        let type = this.dict.find((item:any)=>{
            return item.key == key
        })
        if(type) return type.value
        return ""
    }
}

export default new CompactionDict()